package com.molinari.coding.activities.login;

import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.molinari.androidstructure.activity.BaseActivity;
import com.molinari.coding.R;
import com.molinari.coding.activities.home.HomeUtenteActivity;

public class LoginActivity extends BaseActivity {

	private Button btnSign;
	private EditText user;
	private EditText pass;
	
	@Override
	protected int getIdLayout() {
		return R.layout.login;
	}

	@Override
	protected void onCreateCustom(Bundle savedInstanceState) throws Exception {
		btnSign = loadButton(btnSign, R.id.btnSign);
		pass = loadEdit(pass, R.id.editPassord);
		user = loadEdit(user, R.id.editUsername);
		
		btnSign.setOnClickListener(new OnClickBtnSignListener(HomeUtenteActivity.class, this));

	}

	@Override
	public int getIdMenu() {
		return 0;
	}

	public Button getBtnSign() {
		return btnSign;
	}

	public void setBtnSign(Button btnSign) {
		this.btnSign = btnSign;
	}

	public EditText getUser() {
		return user;
	}

	public void setUser(EditText user) {
		this.user = user;
	}

	public EditText getPass() {
		return pass;
	}

	public void setPass(EditText pass) {
		this.pass = pass;
	}

}
